﻿using System.Data.SQLite;
using System;
using System.IO;
using System.Diagnostics;
using CSharp.Libs.Koc.KernelModels.ItemClasses;
using System.Collections.ObjectModel;
using CSharp.Libs.Koc;
using System.Collections.Generic;

namespace CSharp.Libs.Koc.KernelModels
{
    public partial class DatabaseOperations
    {
        #region declarations
        #endregion



        #region constructor / terminator
        #endregion



        #region event handling
        #endregion



        #region private functions
        private void _SaveToDB(
            Dictionary<String,String> dicData,
            SQLiteConnection CON)
        {
            try
            {
                SQLiteConnection _conLocal = _CON;
                if (CON != null)
                {
                    _conLocal = CON;
                }



            }
            catch (Exception ex)
            {
                _AB.EC.AddException(ex, this.ToString(), _AB.EC.Tools.GetCurrentMethodName());
            }
        }

        private void _CheckTable()
        {
        }
        #endregion



        #region interface
        #region properties
        #endregion

        #region methods
        protected internal void SaveToDB(
            Dictionary<String, String> dicData)
        {
            _SaveToDB(dicData, null);
        }

        protected internal void SaveToDB(
            Dictionary<String,String> dicData,
            SQLiteConnection CON)
        {
            _SaveToDB(dicData, CON);
        }
        #endregion
        #endregion
    }
}
